from django.db import models

# Create your models here.
class Chart(models.Model):
    chartid = models.AutoField(db_column='chartId', primary_key=True)  # Field name made lowercase.
    chartjs = models.CharField(db_column='chartJS', max_length=200)  # Field name made lowercase.
    chartscript = models.CharField(db_column='chartScript', max_length=200)  # Field name made lowercase.
    chartstate = models.IntegerField(db_column='chartState')  # Field name made lowercase.
    charlog = models.IntegerField(db_column='charLog')  # Field name made lowercase.
    tag = models.CharField(max_length=45)
    title = models.CharField(max_length=50, blank=True, null=True)
    abstract = models.CharField(max_length=200)
    author = models.CharField(max_length=45)
    publictime = models.DateTimeField(db_column='publicTime')  # Field name made lowercase.
    chartdescription = models.CharField(db_column='chartDescription', max_length=2000)  # Field name made lowercase.
    exhibitionimg = models.CharField(db_column='exhibitionImg', max_length=200, blank=True, null=True)  # Field name made lowercase.

    class Meta:
        managed = False
        db_table = 'chart'